<?php
/**
 * 前台公共控制器
 */
namespace Home\Controller;
use Think\Controller;
class PublicController extends Controller {
    public function _initialize(){
        //判断网站是否关闭

        $site_is_close = _uri('config', array('field' => 'site_is_close'), 'value');
        
        if($site_is_close){

            $site_close_msg = _uri('config', array('field' => 'site_close_msg'), 'value');

            header("Content-type: text/html; charset=utf-8");

            exit($site_close_msg);

        }
    }

}